# RTT库源文件
set(RTT_SRCS
    SEGGER_RTT.c
    SEGGER_RTT_printf.c
)

# 创建RTT静态库
add_library(RTT STATIC ${RTT_SRCS})

# 添加头文件路径
target_include_directories(RTT PUBLIC
    ${CMAKE_CURRENT_SOURCE_DIR}
    ${CMAKE_CURRENT_SOURCE_DIR}/Config
) 